class Point:
    def __init__(self, x, y):
        self.x = x
        self.y = y
    def distance(self, other):
        delta_x = self.x - other.x
        delta_y = self.y - other.y
        return (delta_x ** 2 + delta_y ** 2) ** 0.5
    def __str__(self):
        return f'{self.x}, {self.y}'

a = Point(3, 4)
b = Point(2, 3)
print(a)
print(b)
print(a.distance(b))